﻿@model LoginModel
@using SpotsHub.Gateway.Models.Customer;
@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Core.Infrastructure.DependencyManagement;

@{
    Layout = "~/Views/Shared/_Layout";

    ViewBag.Title = T("PageTitle.Login").Text;
    // +string+

    //register URL with return URL (if specified)
    var registerUrl = Url.RouteUrl("Register");
    string url = null;
    if (!String.IsNullOrEmpty(this.Context.Request.QueryString["returnUrl"]))
    {
        url = this.Context.Request.QueryString["returnUrl"];
        var webHelper = EngineContext.Current.Resolve<IWebHelper>();
        registerUrl = webHelper.ModifyQueryString(registerUrl, "returnurl=" + HttpUtility.UrlEncode(this.Context.Request.QueryString["returnUrl"]), null);
    }
}
 
@Html.Partial("LoginForm", Model)
